<template>
  <div class="home">
    <el-container>
      <el-header class="layout-header">
        <span>
          <img src="@/assets/logo.png" class="logo">
        </span>
        <h1>酷鲨商城运营管理平台</h1>
        <el-dropdown class="dropdown">
          <span class="el-dropdown-link">
            管理员<i class="el-icon-arrow-down el-icon--right"></i>
          </span>
          <el-dropdown-menu slot="dropdown">
            <el-dropdown-item>个人中心</el-dropdown-item>
            <el-dropdown-item>设置</el-dropdown-item>
            <el-dropdown-item>退出</el-dropdown-item>
          </el-dropdown-menu>
        </el-dropdown>
      </el-header>
      <el-container class="layout-body">
        <el-aside  class="layout-aside">
          <el-menu
              router
              default-active="/admin/index"
              class="el-menu-vertical-demo"
              @open="handleOpen"
              @close="handleClose"
              background-color="#72bfc5"
              text-color="#fff"
              active-text-color="#ffd04b">
            <el-menu-item index="/admin/index">
              <i class="el-icon-s-home"></i>
              <span>首页</span>
            </el-menu-item>
            <el-submenu index="2">
              <template slot="title">
                <i class="el-icon-s-shop"></i>
                <span>商品管理</span>
              </template>
              <el-menu-item-group>
                <el-menu-item index="/admin/product/spu">
                  <i class="el-icon-s-platform"></i>
                  <span>SPU台账</span>
                </el-menu-item>
                <el-menu-item index="/admin/product/spu/add-new">
                  <i class="el-icon-circle-plus-outline"></i>
                  <span>SPU新增SPU台账</span>
                </el-menu-item>
                <el-menu-item index="/admin/product/albums">
                  <i class="el-icon-picture"></i>
                  <span>相册管理</span>
                </el-menu-item>
                <el-menu-item index="/admin/product/categories">
                  <i class="el-icon-s-grid"></i>
                  <span>商品类别</span>
                </el-menu-item>
                <el-menu-item index="/admin/product/attribute-templates">
                  <i class="el-icon-s-order"></i>
                  <span>属性模板</span>
                </el-menu-item>
                <el-menu-item index="/admin/product/brands">
                  <i class="el-icon-user-solid"></i>
                  <span>品牌管理</span>
                </el-menu-item>
              </el-menu-item-group>
            </el-submenu>
            <el-menu-item index="3">
              <i class="el-icon-s-goods"></i>
              <span>订单管理</span>
            </el-menu-item>
            <el-menu-item index="4">
              <i class="el-icon-s-marketing"></i>
              <span>营销管理</span>
            </el-menu-item>
            <el-menu-item index="5">
              <i class="el-icon-s-custom"></i>
              <span>商家管理</span>
            </el-menu-item>
            <el-menu-item index="6">
              <i class="el-icon-location"></i>
              <span>权限管理</span>
            </el-menu-item>
          </el-menu>
        </el-aside>
        <el-main>
          <router-view/>
        </el-main>
      </el-container>
    </el-container>
  </div>
</template>

<style>

.layout-header { background: #72bfc5; color: #fff; }
.layout-header .logo{
  margin: 5px;
  height: 50px;
  float: left
}
.layout-header h1 {
  line-height: 60px;
  display: inline-block;
}
/*下拉菜单样式*/
.layout-header .dropdown{
  margin: 20px 0;
  float: right;

}
.el-dropdown-link {
  cursor: pointer;
  color: #fff;
}
.el-icon-arrow-down {
  color: #fff;
  font-size: 12px;
}


.layout-body{
  position: absolute;
  top: 60px;
  left: 0;
  bottom: 0;
  right: 0;
}
.layout-body .layout-aside{
  background: #72bfc5;
}
.layout-body .layout-aside i{
  color: #fff;
}



</style>

<script>


export default {
  name: 'HomeView',
  components: {
  }
}
</script>



